<template>
	<view class="content" v-for="item in datalist">
		<CardViewText
			:nid="item.nID"
			:title="item.title"
			:isTop="item.isTop"
			:author="item.author"
			:comments="item.comments"
			:time="item.time"
		></CardViewText>
	</view>
</template>

<script>
	import CardViewText from "../../../components/CardViewText.vue"
	export default {
		components:{
			CardViewText
		},
		data() {
			return {
				datalist:[]
			}
		},
		onLoad() {
			this.datalist = getApp().globalData.datalist;
			console.log('onLoad------get datalist ' + this.datalist.length);
		},
		methods: {
		}
	}
</script>

<style>
.content{
	padding-left: 10rpx;
	padding-right: 10rpx;
	padding-top: 5rpx;
	padding-bottom: 5rpx;
}
</style>